In this lab, you will try to find the root cause of an unsuccessful FCI failover. The goal is to try and identify the cause of an unsuccessful FCI failover and fix the issue.
At the end of this lab, you will be able to:
45 minutes
Use the following credentials to login into virtual environment
Before starting the training module, we recommend that you launch the labs and give them some time to stabilize. Please be aware that sometimes the AG may be in a resolving state and AG Replicas may be in a disconnected state. This is a platform issue and should stabilize after a few minutes
Before you begin with the first exercise in the lab, let's review the lab environment.
In the lab, you have one Domain Controller and 3 nodes + 1 client computer.
AlwaysOnN1 and AlwaysOnN2 nodes are in the primary Datacenter.
AlwaysOnN3 is in the secondary datacenter.
For this lab, both the datacenters are in the same subnet.
Each node has Windows Server 2022 O/S installed.
SQL Server 2022 failover clustered named instance (SQLFCI\INST1) is installed
Successful completion of exercise will mean that you can failover the FCI to AlwaysOnN2 node and connect to it using SSMS on the client machine.
If time permits do Exercise 2.
You have successfully completed this exercise. Click Next to advance to the next exercise.
Successful completion of exercise will mean that you can failover the FCI to AlwaysOnN3 node and connect to it using SSMS on the client machine.
--
This is a non-guided activity and the attendees are expected to try and troubleshoot the issue on their own.
You can use any resources (including the internet or your own scripts), to troubleshoot the issue.
You can use the tools discussed in the first module to help troubleshoot the issue.
The possible causes discussed earlier in the lesson can be used as guidance for troubleshooting.
The instructor will discuss the troubleshooting steps, cause and solution in detail after this lab session.
You might have to login directly on the individual nodes to troubleshoot the issue.
Ask yourself the below questions:
Here are some tools that you use to troubleshoot the issue.
Below are some logs that you may want to analyze
To generate and collect the cluster logs of all nodes in the cluster:
Run PowerShell as administrator and run the below commands
PowerShellImport-Module FailoverClusters Get-ClusterLog
Default command Get-ClusterLog generates cluster.log file on ALL nodes in C:\Windows\Cluster\Reports folder.
All messages are logged using UTC/GMT time. Sometimes it's difficult to translate UTC time to local time, especially for time-zones which has daylight saving. Luckily, cluster log can be generated in local time using parameter UseLocalTime . Here is the sample code.
PowerShellGet-ClusterLog –UseLocalTime
Another useful parameter is to copy the files to specific location. This command would generate logs and also dump on specified location. in below example, I am dumping logs from all nodes to C:\Temp folder.
PowerShellGet-ClusterLog –Destination "C:\Temp"
To look at firewall settings, on each node you can search for firewall:
To select the SQL Server 2022 installation media
You have successfully completed this exercise. Click Next to advance to the next lab.